﻿<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	
	<title>iStock-Web股票平台</title>
	
	<link rel="stylesheet" href="/site_media/css/stock.css" type="text/css" />
	
	<style type="text/css" title="currentStyle"> 
		@import "/site_media/css/demo_page.css";
		@import "/site_media/css/demo_table_jui.css";
		@import "/site_media/css/themes/custom-theme/jquery-ui-1.8.9.custom.css";
		@import "/site_media/css/TableTools_JUI.css";
	</style> 
		
	<script type="text/javascript" src="/site_media/js/jquery-1.5.min.js"></script>
	<script type="text/javascript" src="/site_media/js/jquery.json-2.2.min.js"></script>
	
	<script type="text/javascript" charset="utf-8" src="/site_media/js/jquery.dataTables.js"></script> 
	<script type="text/javascript" charset="utf-8" src="/site_media/js/ZeroClipboard.js"></script> 
	<script type="text/javascript" charset="utf-8" src="/site_media/js/TableTools.js"></script> 
		
	<!--[if  lte IE 6 ]>
        <style type="text/css">
        #search{
            margin:12px 0 0 0px;
        }
        

        </style>
    <![endif]-->
	
	<script type="text/javascript">
		
		
		$(document).ready(function(){
			
		});
		
	</script>
	
	<script type="text/javascript" charset="utf-8"> 
			$(document).ready( function () {
				$('.datatable').dataTable( {
					"bJQueryUI": true,
					"sPaginationType": "full_numbers",
					"sDom": '<"H"Tfr>t<"F"ip>',
					"sDom": 'T<"clear">lfrtip',
					"oTableTools": {
						"sSwfPath": "/site_media/swf/copy_cvs_xls_pdf.swf"
					}
				} );
			} );
	</script> 
	
	

</head>
<body>
  <div id="content">
	  	{% if uid %}
			<div id="top_info"><a href="/istock/login" >{{uid}}</a> | <a href="/istock/logout/">退出</a></div>	
		{% else %}
			<div id="top_info"><a href="/istock/login" >登录</a></div>	
		{% endif %}
		
  		<div id="header">
			<div class="logo">
				<img src="/site_media/images/iStock.png"  alt=""/>
			</div>
			<div id="search"> 
				<form method="post" action="#"> 
					<p><input type="text" name="searchid" class="search" id="stext" /> <input type="submit" value="iStock搜索" class="button" /></p> 
				</form> 
			</div> 
		</div>

		<div id="main">
		    
		    
		    <div id="left">
		            <ul>
		                <li><a href="#">首页</a></li>
		                <li><a href="#">我的首页</a></li>
		                <li><a href="#">我的股票</a></li>
		                <li><a href="#">我的公式</a></li>
		                <li><a href="#">公式计算</a></li>
		                <li><a href="#">公式选股</a></li>
		                <li><a href="#">指标比较</a></li>      
		            </ul>
		    </div>
		    
		    <div id="center" >
			    <div class="myuiheader"></div>
			    <div class="myuiresultpool">
					
					<table>
						<thead>
  						 <tr>
						{% for n in numnames %}
							<th>{{n}}</th>	
						{% endfor %}
						</tr>
						</thead>
						<tbody>
							<tr>
								{% for n in num %}
										<td>{{n}}</td>
								{% endfor %}
							</tr>
						</tbody>
					</table>
					
					<table width="100%" class="datatable">
						<thead>
						<tr>
						    <th>id</th>
							<th>日期</th>
							{% for name in vectornames%}
							    <th>{{name}}</th>
							 {% endfor %}
						</tr>
						</thead>
						<tbody>
						    
						    
							{% for indice in indices %}
							         <tr align='center'>
						             <td>600000</td>
						             <td>{{indice.date}}</td>
						            {% for seq in indice.seq %}
						                 {% if seq.value%}
						                    <td>{{seq.value}}</td>
						                 {% else %}
						                    <td>--</td>
						                 {% endif %}
						            {% endfor %}
						             </tr>         
							{% endfor %}					
							
						</tbody>
					</table>
					
				</div>
			    
            </div>
            
		</div>
		<div id="footer">
			<p>&nbsp;&nbsp;<a href="">关于我们</a> &nbsp;&nbsp; | &nbsp;&nbsp;<a href="">免责声明 </a>&nbsp;&nbsp;| &nbsp;&nbsp;<a href="">联系我们</a> &nbsp;&nbsp;| &nbsp;&nbsp;<a href="">帮助中心</a>&nbsp;&nbsp;</p>
		</div>
		
  </div>
  
  
</body>
</html>
